import request from '@/utils/request'
import {commercialApiUrl,faceApiUrl} from '../config'

/**
 *收支分析统计
 * @param data
 */
export function getcount(data) {
    return request({
      url: commercialApiUrl + '/budget/analysis/count',
      method: 'post',
      data
    })
  }
  
/**
 *收支分析列表
 * @param data
 */
export function getList(data) {
    return request({
      url: commercialApiUrl + '/budget/analysis/list',
      method: 'post',
      data
    })
  }
  /**
 *
 *查询
 */
// 查询单个收支分析
 export function lookList(data) {
  return request({
    url: `${commercialApiUrl}/budget/analysis/query/${data.id}`,
    method: 'post',
  })
}
/**
 *保存收支分析
 * @param data
 */
 export function saveList(data) {
    return request({
      url: commercialApiUrl + '/budget/analysis/save',
      method: 'post',
      data
    })
  }
  /**
 *收支分析校验
 * @param data
 */
 export function checkBudgetAnalysis(data) {
  return request({
    url: faceApiUrl + '/comBusinessCostMonthly/checkBudgetAnalysis',
    method: 'post',
    data
  })
}

